package com.epfresh.supplier.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.epfresh.supplier.R;
import com.epfresh.api.global.BaseActivity;

public class QuestionActivity extends BaseActivity {

    static final String TAG = "QuestionActivity";
    private TextView tvQuestion1,tvQuestion2,tvQuestion3;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_question);
        tvQuestion1 = (TextView)findViewById(R.id.tv_qustion1);
        tvQuestion2 = (TextView)findViewById(R.id.tv_qustion2);
        tvQuestion3 = (TextView)findViewById(R.id.tv_qustion3);
        tvQuestion1.setOnClickListener(this);
        tvQuestion2.setOnClickListener(this);
        tvQuestion3.setOnClickListener(this);

        initData();
        initView();
    }

    private void initView() {
        ivBack.setVisibility(View.VISIBLE);
        toolbarTitle.setText("常见问题");
    }

    private void initData() {
    }


  //  @OnClick({R.id.login_login, R.id.login_code, R.id.login_forget,R.id.baseback})
    public void onClick(View view) {
        super.onClick(view);
        switch (view.getId()) {
            case R.id.baseback:
                // 返回上一页
                finish();
                break;
            case R.id.tv_qustion1:
                // 返回上一页
                //	break;
            case R.id.tv_qustion2:
                // 返回上一页
                //	break;
            case R.id.tv_qustion3:
                Intent question = new Intent(getBaseContext(), QuestionDetailActivity.class);
                startActivity(question);
                break;
            default:
                break;
        }
    }

}
